package com.metal.gear.certification.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.metal.gear.common.constant.DateTimeConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class BasePo {

    @Schema(name ="删除状态")
    private Integer delFlag = 0;

    @Schema(name ="创建人")
    private String createBy;

    @Schema(name ="创建时间")
    @DateTimeFormat(pattern = DateTimeConstant.DATETIME_FORMAT_HYPHEN)
    @JsonFormat(timezone = "GMT+8",pattern = DateTimeConstant.DATETIME_FORMAT_HYPHEN)
    private LocalDateTime createTime;

    @Schema(name ="更新人")
    private String updateBy;

    @Schema(name ="更新时间")

    @DateTimeFormat(pattern = DateTimeConstant.DATETIME_FORMAT_HYPHEN)
    @JsonFormat(timezone = "GMT+8",pattern = DateTimeConstant.DATETIME_FORMAT_HYPHEN)
    private LocalDateTime updateTime;


}
